package edu.kjxy.worker0312;

import java.util.Scanner;

public class worker08 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int count = 0;
		while(true) {
			int bit = num % 10;
			System.out.print(bit + " ");
			count++;
			num /= 10;
			if(num == 0) break;
		}
		System.out.println("这是一个" + count + "位数");
		in.close();
	}

}
